import tensorflow as tf

a = tf.constant(100)
b = tf.constant(200)
print_op = tf.Print(a, [a], 'a:')
with tf.control_dependencies([print_op]):
    c = a + b
with tf.Session() as sess:
    print(sess.run(c))
